Skip to content

fix the device performance timing checks for clReleaseContext #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2025

Conversation

bashbaug
Copy link
Contributor

Description of Changes

The device performance timing checks were only supposed to happen when the context reference count went to zero, but because the reference count was only queried when call logging was enabled, it was happening much more often. Fix by querying (and updating) the context reference count unconditionally.

Testing Done

Tested with the SYCL llama.cpp with just chrome tracing enabled. Verified that the device performance timing checks did not occur for calls to clReleaseContext.

The device performance timing checks were only supposed to happen
when the context reference count went to zero, but because the
reference count was only queried when call logging was enabled, it
was happening much more often.  Fix by querying (and updating) the
context reference count unconditionally.
@bashbaug bashbaug merged commit ed0bcc1 into intel:main Mar 29, 2025
8 checks passed
@bashbaug bashbaug deleted the fix-release-context-perf-timing-check branch March 29, 2025 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant